import request from '@/utils/request'

// 查询法律援助轮播图管理列表
export function listLawbanner(query) {
  return request({
    url: '/wechat/lawbanner/list',
    method: 'get',
    params: query
  })
}

// 查询法律援助轮播图管理详细
export function getLawbanner(lawBannerId) {
  return request({
    url: '/wechat/lawbanner/' + lawBannerId,
    method: 'get'
  })
}

// 新增法律援助轮播图管理
export function addLawbanner(data) {
  return request({
    url: '/wechat/lawbanner',
    method: 'post',
    data: data
  })
}

// 修改法律援助轮播图管理
export function updateLawbanner(data) {
  return request({
    url: '/wechat/lawbanner',
    method: 'put',
    data: data
  })
}

// 删除法律援助轮播图管理
export function delLawbanner(lawBannerId) {
  return request({
    url: '/wechat/lawbanner/' + lawBannerId,
    method: 'delete'
  })
}

// 导出法律援助轮播图管理
export function exportLawbanner(query) {
  return request({
    url: '/wechat/lawbanner/export',
    method: 'get',
    params: query
  })
}